Added reset method to Opts so that create.parseCommandLine can be used more than
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Mon, 21 Nov 2005 12:00:36 +0000 (13:00 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Mon, 21 Nov 2005 12:00:36 +0000 (13:00 +0100)
commitbbd9571e5f8a9931c645148d96decf775c26603a
treeeaa01b5f80f9050c4ea4dc877645b2b87dd5ea0e
parent8b3050a110a0ba420e469236f7b4470be831ba37
Added reset method to Opts so that create.parseCommandLine can be used more than
once.  This makes it possible to unit test this code.  Remove the odd aliasing
of gopts to opts inside parseCommandLine.

Rename local variables globals and locals inside opts.load -- these are built-in
functions.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xm/create.py
tools/python/xen/xm/opts.py